def list2intList(list):
    newList = []
    for item in list:
        newList.append(int(item))
    return newList


# base price
totalPrice = 0
basePrice = 0
result = "通过对账号内角色、武器、圣遗物、等级等全方位综合评定。该账号的基础价格为：\n"

fiveStarLimitedCharacterList = list2intList(input("请依次输入0-6命座的五星限定角色数量，空格分割：").split())
fiveStarLimitedCharacterPrice = fiveStarLimitedCharacterList[0] * 40 + \
                                fiveStarLimitedCharacterList[1] * 90 + \
                                fiveStarLimitedCharacterList[2] * 150 + \
                                fiveStarLimitedCharacterList[3] * 220 + \
                                fiveStarLimitedCharacterList[4] * 300 + \
                                fiveStarLimitedCharacterList[5] * 390 + \
                                fiveStarLimitedCharacterList[6] * 500

fiveStarPermenantCharacterList = list2intList(input("请依次输入0-6命座的五星常驻角色数量，空格分割：").split())
fiveStarPermenantCharacterPrice = (fiveStarLimitedCharacterList[0] * 40 + \
                                   fiveStarLimitedCharacterList[1] * 90 + \
                                   fiveStarLimitedCharacterList[2] * 150 + \
                                   fiveStarLimitedCharacterList[3] * 220 + \
                                   fiveStarLimitedCharacterList[4] * 300 + \
                                   fiveStarLimitedCharacterList[5] * 390 + \
                                   fiveStarLimitedCharacterList[6] * 500) * 0.5

basePrice += (fiveStarLimitedCharacterPrice + fiveStarPermenantCharacterPrice)
result += f"五星角色价值：{fiveStarLimitedCharacterPrice + fiveStarPermenantCharacterPrice}\n"

fiveStarWeaponList = list2intList(input("请依次输入五星专属、限定和常驻武器数量，空格分割：").split())
fiveStarWeaponPrice = fiveStarWeaponList[0] * 50 + fiveStarWeaponList[1] * 35 + fiveStarWeaponList[2] * 25

basePrice += fiveStarWeaponPrice
result += f"五星武器价值：{fiveStarWeaponPrice}\n"

fourStarCharacterList = list2intList(input("请依次输入四星满命角色、非满命包含命座角色和御四家总命座数量，空格分割：").split())
fourStarCharacterPrice = fourStarCharacterList[0] * 25 + fourStarCharacterList[1] * 3 + fourStarCharacterList[
    2] * 5

basePrice += fourStarCharacterPrice
result += f"四星角色价值：{fourStarCharacterPrice}\n"

OPCharacterPrice = int(input("请输入绝版角色数量：")) * 20

basePrice += OPCharacterPrice
result += f"绝版角色价值：{OPCharacterPrice}\n"

fourStarWeaponList = list2intList(input("请依次输入四星绝版武器、绝版不可精炼武器和非锻造武器数量，空格分割：").split())
OPWeaponPrice = fourStarWeaponList[0] * 4 + fourStarWeaponList[1] * 10
fourStarWeaponPrice = fourStarWeaponList[2] * 3

basePrice += (fourStarWeaponPrice + OPWeaponPrice)
result += f"四星武器价值：{fourStarWeaponPrice}\n"
result += f"绝版武器价值：{OPWeaponPrice}\n"

adventureRank = int(input("请输入冒险等级:"))
if adventureRank > 55:
    adventureRankPrice = (adventureRank - 55) * 20 + 25
elif adventureRank > 50:
    adventureRankPrice = (adventureRank - 50) * 5
else:
    adventureRankPrice = 0

basePrice += adventureRankPrice
result += f"冒险等级价值：{adventureRankPrice}\n"

artifactList = list2intList(input("请依次输入五星满级主属性正确四件套圣遗物和散件圣遗物数量，空格分割：").split())
artifactPrice = artifactList[0] * 30 + artifactList[1] * 5

basePrice += artifactPrice
result += f"圣遗物价值：{artifactPrice}\n"
result += f"总计基础价值：{basePrice}\n"

risk = int(input("请输入找回风险："))
if risk == 1:
    result += "由于该账号满足未实名、无邮箱、无TapTap和PSN等条件，综合评定为无任何找回风险，因此该账号在不同场景下的实际价值如下："
    priceProportion = 1.0
elif risk == 2:
    result += "由于该账号满足签署合同、提供账号实名信息、赠送邮箱、TapTap和PSN等条件，综合评定为有轻微找回风险，因此该账号在不同场景下的实际价值如下："
    priceProportion = 0.8
elif risk == 3:
    result += "由于该账号满足签署合同、提供账号实名信息、不赠送邮箱、TapTap和PSN等条件，综合评定为有中等找回风险，因此该账号在不同场景下的实际价值如下："
    priceProportion = 0.6
elif risk == 4:
    result += "由于该账号满足签署合同、不提供账号实名信息、不赠送邮箱、TapTap和PSN等条件，综合评定有超高找回风险，因此该账号在不同场景下的实际价值如下："
    priceProportion = 0.3
else:
    result += "由于该账号不满足任何条件，综合评定找回风险过高，将不予进行场景估价,，因此该账号在不同场景下的实际价值如下："
    priceProportion = 0

proportionPrice = basePrice * priceProportion
result += f"\n    1.第三方回收价格：{proportionPrice * 0.3}，偏差值{proportionPrice*0.04}-{proportionPrice * 0.08}"
result += f"\n    2.个人出售或购买价格：{proportionPrice * 0.7}，偏差值{proportionPrice * 0.08}-{proportionPrice * 0.12}"
result += f"\n    3.第三方购买价格：{proportionPrice * 1.0}，偏差值{proportionPrice * 0.2}"
print(result)
